import { createRouter, createWebHistory } from 'vue-router/dist/vue-router';
import { routes } from './routes';

const router = createRouter({
  // 路由模式为hash
  history: createWebHistory(),
  routes: routes,
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    };
  },
});

export default router;
